<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title></title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		function page(n,s){
			if(n) $("#pageNo").val(n);
			if(s) $("#pageSize").val(s);
			$("#searchForm").attr("action","${ctx}/sys/user/list_zj_frame");
			$("#searchForm").submit();
	    	return false;
	    }
	</script>
</head>
<body>
	<form:form id="searchForm" modelAttribute="user" action="${ctx}/sys/user/list_zj_frame" method="post" class="breadcrumb form-search ">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<sys:tableSort id="orderBy" name="orderBy" value="${page.orderBy}" callback="page();"/>
		<ul class="ul-form">
			<li><label>所属局：</label><sys:treeselect id="company" name="company.id" value="${user.company.id}" labelName="company.name" labelValue="${user.company.name}" 
				title="所属局" url="/sys/office/treeData?type=1" cssClass="input-small" allowClear="true"/></li>
			<li><label>所属部门：</label><sys:treeselect id="office" name="office.id" value="${user.office.id}" labelName="office.name" labelValue="${user.office.name}" 
				title="所属部门" url="/sys/office/treeData?type=2" cssClass="input-small" allowClear="true" notAllowSelectParent="false"/></li>
            <li><label>所属科室：</label><sys:treeselect id="keshi" name="keshi.id" value="${user.keshi.id}" labelName="keshi.name" labelValue="${user.keshi.name}" 
				title="所属科室" url="/sys/office/treeData_ks?type=2" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/></li>    
            <!--<label>专&nbsp;&nbsp;&nbsp;业：</label><form:select path="zy" class="input-medium">
            		<form:option value="" label=""/>
					<form:options items="${fns:getDictList('sys_user_zy')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>-->
			<li class="clearfix"></li>
			<li><label>姓&nbsp;&nbsp;&nbsp;名：</label><form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/></li>
			<li><label>执法证号：</label><form:input path="zfzh" htmlEscape="false" maxlength="50" class="input-medium"/></li>
            <li class="clearfix"></li>
            <li><label>岗&nbsp;&nbsp;&nbsp;位：</label><form:input path="gw" htmlEscape="false" maxlength="50" class="input-medium"/></li>
            <li><label>职&nbsp;&nbsp;&nbsp;务：</label><form:input path="zw" htmlEscape="false" maxlength="50" class="input-medium"/></li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询" onClick="return page();"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
<!--        	<th>选择</th>-->
        	<th class="sort-column name">姓名</th>
            <th>所属局</th>
            <th>所属机构</th>
            <th>所属科室</th>
            <th>性别</th>
            <th>专业/专业技能</th>
            <th>执法证号</th>
            <th>签证官类别</th>
            <th>现场查验岗位类别</th>
            <th>岗位</th>
            <th>职务</th>
            <th>工作年限</th>
            <th>已获得岗位资格</th>
            <!--<th>专业</th>-->
            <th>电话</th>
            <th>手机</th>
<!--            <shiro:hasPermission name="sys:user:edit"><th>操作</th></shiro:hasPermission></tr>-->
        </thead>
		<tbody>
		<c:forEach items="${page.list}" var="user">
			<!--<a style="cursor:pointer" href="javascript:void(0)" onClick="javascript:dotext('${user.id}','${user.name}','${user.office.name}','${fns:getDictLabels(user.zy, 'sys_user_zy', '')}')">-->
            <tr style="cursor:pointer" onClick="javascript:parent.dotext('${user.id}','${user.name}','${user.office.name}','${user.keshi.name}')">
            	<!--<td width="10px" align="center"><input id="could" name="could" type="checkbox" value="" onClick="javascript:dotext('${user.id}','${user.name}','${user.office.name}','${user.zy}')"/></td>-->
            	<td>${user.name}</td>
				<td>${user.company.name}</td>
				<td>${user.office.name}</td>
                <td>${user.keshi.name}</td>
				<!--<td>${fns:getDictLabels(user.zy, 'sys_user_zy', '')}</td>-->
                <td>${fns:getDictLabel(user.sex, 'sex', '')}</td>
                <td>${user.zy}</td>
                <td>${user.zfzh}</td>
                <td>${fns:getDictLabel(user.qzglb, 'user_dong_zhi', '')}</td>
                <td>${fns:getDictLabel(user.xccygwlb, 'user_dong_zhi', '')}</td>
                <td>${user.gw}</td>
                <td>${user.zw}</td>
                <td>${user.gznx}</td>
                <td>${user.gwzg}</td>
				<td>${user.phone}</td>
				<td>${user.mobile}</td><%--
				<td>${user.roleNames}</td> --%>
<!--				<shiro:hasPermission name="sys:user:edit"><td>
    				<a href="${ctx}/sys/user/form_zj?id=${user.id}">加入执法人员库</a>
				</td></shiro:hasPermission>-->
			</tr><!--</a>-->
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
	<br> 
</body>
</html>